//
//  CFHeaderView.m
//  OneCreditTreasure
//
//  Created by iOS Tedu on 16/8/29.
//
//

#import "CFHeaderView.h"

@implementation CFHeaderView

#pragma mark - 懒加载 lazy loading
- (UILabel *)leftLB {
    if(_leftLB == nil) {
        _leftLB = [[UILabel alloc] init];
        [self.contentView addSubview:_leftLB];
        [_leftLB mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(8);
            make.centerY.equalTo(0);
        }];
        _leftLB.font = [UIFont systemFontOfSize:16 * AUTO_WIDTH];
    }
    return _leftLB;
}

- (UILabel *)rightLB {
    if(_rightLB == nil) {
        _rightLB = [[UILabel alloc] init];
        [self.contentView addSubview:_rightLB];
        [_rightLB mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(-8);
            make.centerY.equalTo(0);
        }];
        _rightLB.font = [UIFont systemFontOfSize:15 * AUTO_WIDTH];
        _rightLB.textColor = [UIColor lightGrayColor];
    }
    return _rightLB;
}
@end
